package com.cavedroid;

public final class Geometry {

	public static final float distance2(float x1, float y1, float x2, float y2) {
		return (float) Math.sqrt(Math.pow(x1-x2, 2) + Math.pow(y1-y2,2));
	}
	
	public static final float distance3(float x1, float y1, float z1, float x2, float y2, float z2) {
		return (float) Math.sqrt(Math.pow(x1-x2, 2) + Math.pow(y1-y2,2) + Math.pow(z1-z2, 2));
	}
}
